<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>

  <style>
    div{
      width: 100px;
      height: 100px;
      border: 1px solid green;
      /*隐藏超出部分*/
      /*overflow: hidden;*/
      /*visible超出显示*/
      overflow: scroll;

    }
  </style>
</head>
<body>
<div>
<img src="red.jpg" alt="">
</div>
</body>
</html>